﻿Public Class MBC_para_charItem

    Public Const _base As UShort = 0
    '基础型EX板使用地址：
    Public Const interval_eachref As UShort = 30      '每一个库的地址间隔
    '第一个冷库的地址
    Public Const AI_Temp_Num As UShort = _base + 21      ' 已使用的温度端口数量
    Public Const Temp1_Input_Nu As UShort = _base + 22      ' 温度1端口数


    Public Const AI_Hum_Num As UShort = _base + 31      ' 已使用的湿度端口数量
    Public Const Hum1_Input_Nu As UShort = _base + 32      ' 湿度1端口数
   

    Public Const Alarm_Output_Nu As UShort = _base + 35           ' 冷库报警输出端口号
    Public Const SoundLight_Output_Nu As UShort = _base + 36      ' 声光报警输出端口号
    Public Const LostPower_Input_Nu As UShort = _base + 37        ' 缺项报警输入端口号
    Public Const Door_Input_Nu As UShort = _base + 38             ' 库门状态输入端口
    Public Const Door2_Input_Nu As UShort = _base + 39             ' 库门状态输入端口
    Public Const JointAction_Output_Nu As UShort = _base + 40      '联动报警输出端口
    Public Const DefrostStatus_Input_Nu As UShort = _base + 41     '除霜状态输入端口
    Public Const JointActionOpen_Output_Nu As UShort = _base + 42  '强制制冷开启输出端口
    Public Const JointActionClose_Output_Nu As UShort = _base + 43    '强制制冷关闭输出端口

    '扩展兼容版使用地址：
    Public Const interval_eachrefex16 As UShort = 60   '扩展板每一库地址间隔 
    Public Const Temp1_Input_NuEx16 As UShort = _base + 21      ' 温度1端口数
    Public Const Hum1_Input_NuEx16 As UShort = _base + 37      ' 湿度1端口数
    Public Const Alarm_Output_NuEx16 As UShort = _base + 53           ' 冷库报警输出端口号
    Public Const SoundLight_Output_NuEx16 As UShort = _base + 54      ' 声光报警输出端口号
    Public Const LostPower_Input_NuEx16 As UShort = _base + 55        ' 断电报警输入端口号

    'EI新增端口类型
    Public Const Generator_Start_Input_Nu_NuEx16 As UShort = _base + 75             ' 发电机启动状态输入端口
    Public Const Door_Input_Nu_NuEx16 As UShort = _base + 60             ' 库门1状态输入端口
    Public Const Door2_Input_Nu_NuEx16 As UShort = _base + 61             ' 库门2状态输入端口

    Public Const Temp_Input_Type_NuEx16 As UShort = _base + 66             ' 温度AI探头类型
    Public Const Hum_Input_Type_NuEx16 As UShort = _base + 71             ' 湿度AI探头类型

    '制冷相关端口
    Public Const Cooling_Input_Nu As UShort = _base + 62             ' 制冷状态输入端口
    Public Const CompressorSetFailure_Input_Nu As UShort = _base + 63             ' 机组故障状态输入端口
    Public Const CompressorFailure_Input_Nu As UShort = _base + 64            ' 压缩机故障状态输入端口
    Public Const DefrostTemp_Input_Nu As UShort = _base + 65             ' 除霜温度输入端口(AI)
    Public Const Compressor_Input_Nu As UShort = _base + 76             ' 除霜温度输入端口(AI)

    '联动相关端口
    Public Const JointAction_Output_NuEx16 As UShort = _base + 56     ' 联动状态输出端口号
    Public Const JointActionClose_Output_NuEx16 As UShort = _base + 59 ' 强制制冷关闭输出端口号
    Public Const DefrostStatus_Input_NuEx16 As UShort = _base + 57 ' 除霜状态输入端口号
    Public Const JointActionOpen_Output_NuEx16 As UShort = _base + 58 ' 强制制冷开启输出端口号


End Class